require "migration_helpers"
class CreateReplaces < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :replaces do |t|
      t.column :about, :text
      t.column :meta_id, :integer
      t.column :title, :string
      t.column :pdoc_id, :string, :default => 0
      t.column :pdoc_about, :text
    end
    foreign_key(:replaces, :meta_id, :metas)
  end

  def self.down
    drop_table :replaces
  end
end
